package cn.sll.pet.domain;


import cn.sll.base.domain.BaseDomain;
import cn.sll.org.domain.Department;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author sll
 * @since 2023-01-08
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class PetType extends BaseDomain {

    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;

    // 上级类型
    private PetType parent;

    // 无限极数
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();

}
